import request from "@/utils/request";

export function getAlljurisdiction(data) {
  return request({
    url: "/jurisdiction/search",
    method: "post",
    data,
  });
}

export function getProductBySearch(data) {
  return request({
    url: "/product/getProductBySearch",
    method: "post",
    data,
  });
}
export function getUserPage(data) {
  return request({
    url: "/users/getUserPage",
    method: "post",
    data,
  });
}
export function getOrderlist(data) {
  return request({
    url: "/order/getOrderlist",
    method: "post",
    data,
  });
}
export function updaterOrder(data) {
  return request({
    url: "/order/updaterOrder",
    method: "post",
    data,
  });
}
export function productsell() {
  return request({
    url: "/product/productsell",
    method: "post",
  });
}
export function productline() {
  return request({
    url: "/product/productline",
    method: "post",
  });
}
export function AddCategory(data) {
  return request({
    url: "/product/AddCategory",
    method: "post",
    data,
  });
}
export function register(data) {
  return request({
    url: "/users/register",
    method: "post",
    data,
  });
}
export function updatervip(data) {
  return request({
    url: "/users/updatervip",
    method: "post",
    data,
  });
}
export function addProduct(data) {
  return request({
    url: "/product/addProduct",
    method: "post",
    data,
  });
}
export function modifyProduct(data) {
  return request({
    url: "/product/modifyProduct",
    method: "post",
    data,
  });
}
export function getCategory() {
  return request({
    url: "/product/getCategory",
    method: "post",
  });
}

export function addJurisdictionPage(data) {
  return request({
    url: "/jurisdiction/addJurisdictionPage",
    method: "post",
    data,
  });
}
export function changeJurisdictionPage(data) {
  return request({
    url: "/jurisdiction/change",
    method: "post",
    data,
  });
}
export function DeleteJurisdictionPage(data) {
  return request({
    url: "/jurisdiction/DeleteJurisdictionPage",
    method: "post",
    data,
  });
}
